<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}
if($dduser['id']==0){
	jump(wap_l(MOD,'loGIN'));
}
$webtitle='帐号设置';
$from=$_GET['from'];

$dduser['default_pwd']=$dd_wap_class->get_default_pwd($dduser['id']);

include(TPLPATH.'/inc/header_3.tpl.php');
?>
<script>
function cbCheckForm(input,$form){
	var url='<?=wap_l(MOD,'set')?>';
	url=ddJoin(url,input);
	$.ajax({
		url: url,
		dataType:'jsonp',
		jsonp:"callback",
		success: function(data){
			if(data.s==1){
				alert('设置完成','<?=$from?>');
			}
			else{
				alert(data.r);
			}
		}
	});
	return false;
}
</script>
<div class="p15" align="center" style="margin-top:-10px">   
<div class="register">
  <form onSubmit="return checkForm($(this),cbCheckForm)" action="" id="register_form">
  <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
	  <input id="old_password" type="hidden" name="old_password" value="<?=$dduser['default_pwd']?>"/>
		</tr>
        <tr height="40">
		  <td width="100" height="35" style="text-align:left">电子邮箱 (以便能够及时联系您)</td>
		</tr>
		<tr height="40">
		  <td><input id="email" name="email" value="<?=$dduser['email']?>"  class="ddinput" placeholder="请输入电子邮箱" dd-required dd-type="email" type="text"></td></tr>
		<tr height="40">
		  <td height="90" colspan="2">   <input name="do" type="hidden" value="update" ><input type="hidden" name="sub" value="1" />
          <input type="submit" value="保存信息" id="sub"  class="register_dl">   
  </td>
		  <td></td>
		</tr>
	  </table>
      </form>	 
 
</div>


</div>
<?php include(TPLPATH.'/inc/footer.tpl.php');?>